Click here to return to the VHDL Reference Guide. (last edit: 24. september 2012)

Next

A sequential statement which jumps back to the top of a loop. In the case of a for loop, the loop parameter takes the next value in its range.

Syntax

  [Label:] next [LoopLabel] [when Condition];
    

Where

loop--end loop See Sequential Statement

Rules

The next must be inside a loop with the given LoopLabel, or inside any loop if there is no LoopLabel.

Example

  L1: loop
    L2: for I in A'RANGE loop
      next when I = N;                -- Jump to next iteration of inner loop L2
      if A(I) = 'U' then
        next L1;                      -- Jump to top of outer loop L1
      end if;
    end loop L2;
    ...
  end loop L1;
    

See Also

Exit, For Loop, While Loop, Loop